package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffDutyCycleTargetDto
 * @使用场景
 */
@Data
public class BffDutyCycleTargetDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 目标周期简称
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 目标周期名称
     */
    @ApiModelProperty("目标周期名称")
    private String targetCycleName;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期类型名称
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 诊断值
     */
    @ApiModelProperty("诊断值")
    private Double targetDiagnosticValue;

    /**
     * 冗余单位
     */
    @ApiModelProperty("冗余单位")
    private String unit;

    /**
     * 周期预算金额
     */
    @ApiModelProperty("周期预算金额")
    private Double cycleBudgetAmount;

    /**
     * 冗余预算单位
     */
    @ApiModelProperty("冗余预算单位")
    private String cycleBudgetUnit;
    /**
     * 目标周期规划设置ID
     */
    @NotNull(message = "目标周期规划设置ID不能为空")
    @ApiModelProperty("目标周期规划设置ID")
    private String targetCyclePlanSetId;

    /**
     * 目标实际开始时间
     */
    @ApiModelProperty("目标实际开始时间")
    private Date targetActualStartTime;

    /**
     * 目标实际结束时间
     */
    @ApiModelProperty("目标实际结束时间")
    private Date targetActualEndtTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDutyCycleTargetDto that = (BffDutyCycleTargetDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && cyclelAlias == that.cyclelAlias && targetCycleName == that.targetCycleName && cycleStandardName == that.cycleStandardName && cycleTypeName == that.cycleTypeName && isParentCycle == that.isParentCycle && isMetaphase == that.isMetaphase && targetDiagnosticValue == that.targetDiagnosticValue && unit == that.unit && cycleBudgetAmount == that.cycleBudgetAmount && cycleBudgetUnit == that.cycleBudgetUnit && targetCyclePlanSetId == that.targetCyclePlanSetId && targetActualStartTime == that.targetActualStartTime && targetActualEndtTime == that.targetActualEndtTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, cyclelAlias, targetCycleName, cycleStandardName, cycleTypeName, isParentCycle, isMetaphase, targetDiagnosticValue, unit, cycleBudgetAmount, cycleBudgetUnit, targetCyclePlanSetId, targetActualStartTime, targetActualEndtTime);
    }


}
   